xl: Fix adding additional config cmdline parameters
authorAndre Przywara <andre.przywara@amd.com>
Fri, 10 Sep 2010 17:57:47 +0000 (18:57 +0100)
committerAndre Przywara <andre.przywara@amd.com>
Fri, 10 Sep 2010 17:57:47 +0000 (18:57 +0100)
commita48b2967f975fcd8e1edf8a9cc9f1ef004992825
tree3ea50c7af6fe559d3883e9abe40d9a0ff9605b6c
parent5ab30725b1736b3af47ad911b800a8fbcbd6a112
xl: Fix adding additional config cmdline parameters

When checking the size of the buffer we hold for additional
config parameters passed on the command line we should take the
size of the to-be-added string into account. While at it, rework
the implementation to be cleaner and safer.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c